﻿@{ ViewBag.Title = "详情内容";

    Layout = "~/Views/Shared/_HTMLLayout.cshtml"; }


<br/>
<dl class="detail">
    <dt>
        <h1 align="center"><span id="detailTitle"></span></h1>
        <div align="center">
            <span id="detailDate"></span>
            <span id="detailAuth"></span>
            <span></span>
        </div>
	<br/>
    </dt>
    <dd style="text-align:left;margin-left:25%;">
        <p  id="detailContent">

        </p>
    </dd>
</dl>
<br/>
<script type="text/javascript">
    $(function () {
        getdetailbyid('@ViewBag.DetailID');
    });
    function getdetailbyid(id) {

        var queryUrl = querybase + '/News/GetForm' + '?id=' + id;
        $.ajax({
            type: "GET",
            url: queryUrl,
            data: {},
            datatype: "json",
            success: function (data) {
                var item = data.Data;
                if (item != null && item != undefined) {
                    $("#detailTitle").html(item.NewsTitle);
                    $("#detailDate").html(item.BaseModifyTime);
                    $("#detailAuth").html(item.NewsAuthor);
                    $("#detailContent").html(item.NewsContent);
                }
            }
        });
    }
</script>